<?php $this->render("header.php");?>
     <!-- 全站搜索结果 -->
        <div class="serachlist">
        	<div class="tit_serachlist">
                <h3>搜索结果</h3>
                <div class="pos r">
					<a href="<?php echo $this->fullUrl;?>?>/">主页</a>&lt;搜索
                </div>
            </div>
            
            <div class="con_serachlist">
			<ul>
			<?php foreach($this->list as $v){
			echo <<<EOT
<li><a href="{$v['url']}">{$v['title']}</a>
<p>{$v['content']}</p>
<span>位置：<a href="{$v['turl']}" class="pos_serachlist">{$v['tname']}</a></span>
</li>
EOT;
			}?>
            </ul>
            
<!--分页控制 开始-->
		<div class="pageNum">
<?php
$ext = '&q=' . $this->q . '&total=' . $this->total;
$indexurl =$this->url($this->baseUrl, "index", 'search', 'p=1' . $ext);
$lasturl = $this->url($this->baseUrl, "index", 'search', 'p=' . $this->page['totalpage'] . $ext);
print <<<EOT
<a href="{$indexurl}" title="第一页" class="bg_pageNum">第一页</a> <span>
EOT;
foreach ($this->pagenum as $v) {
    $url =$this->url($this->baseUrl, "index", 'search', 'p=' . $v . $ext);
    if ($v == $this->page['nowp'])
        echo '<a href="' . $url . '" class="current">' . $v . '</a>';
    else
        echo '<a href="' . $url . '">' . $v . '</a>';
}
print <<<EOT
</span><a href="{$lasturl}" title="末 页" class="bg_pageNum">末 页</a>
EOT;
?>
		</div>
<!--分页控制 结束-->  
            </div>
        <div class="serachlist_b oh"></div>
            
     	</div>     
     <!-- /全站搜索结果 --> 
    <div class="clearfix"></div>

<?php $this->render("footer.php");?>